package com.douleka.curd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.douleka.curd.entity.CardType;
import com.douleka.curd.mapper.CardTypeMapper;
import com.douleka.curd.service.ICardTypeService;
import com.douleka.curd.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CardTypeServiceImpl extends ServiceImpl<CardTypeMapper, CardType> implements ICardTypeService  {
    @Autowired
    private CardTypeMapper cardTypeMapper;

    //获取卡类型以及卡种
    @Override
    public Result<Object> getType() {
        List<CardType> type = cardTypeMapper.getType();
        return new Result<>("200","success",type);
    }
}
